package com.caishi.lkx.exam.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.zzw.common.entity.impl.BaseEntity;
import com.zzw.common.service.model.NameModel;
import com.zzw.common.service.model.base.SortModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.List;

@Schema(title = "产品")
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "ex_product_base",autoResultMap = true)
public class ProductBaseModel extends BaseEntity<ProductBaseModel> implements NameModel<ProductBaseModel, String>, SortModel<ProductBaseModel> {
    private String name;
    /**
     * 行业id
     * 值为"gjtk"时表示考试为高教题库
     */
    @Schema(title = "行业id 值为gjtk时表示考试为高教题库")
    private String industryId;
    @Schema(title = "考试id")
    private String examId;

    @Schema(title = "科目id")
    private Long categoryId;
    @Schema(title = "栏目ids")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> columnIds;
    @Schema(title = "排序")
    private Integer sort;


    @TableField(exist = false)
    private String industryName;
    @TableField(exist = false)
    private String examName;
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String columnName;

}
